<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><link rel="stylesheet" href="http://localhost/HDPHP_CMS/Templates/default1/css/style.css" />
<script type='text/javascript' src='http://localhost/hdphp/hdphp/../hdjs/jquery-1.8.2.min.js'></script>
<link href='http://localhost/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/HDPHP_CMS';
		WEB = 'http://localhost/HDPHP_CMS/index.php';
		URL = 'http://localhost/HDPHP_CMS/index.php?a=Index&c=Html&m=list_';
		HDPHP = 'http://localhost/hdphp/hdphp';
		HDPHPDATA = 'http://localhost/hdphp/hdphp/Data';
		HDPHPTPL = 'http://localhost/hdphp/hdphp/Lib/Tpl';
		HDPHPEXTEND = 'http://localhost/hdphp/hdphp/Extend';
		APP = 'http://localhost/HDPHP_CMS/index.php?a=Index';
		CONTROL = 'http://localhost/HDPHP_CMS/index.php?a=Index&c=Html';
		METH = 'http://localhost/HDPHP_CMS/index.php?a=Index&c=Html&m=list_';
		GROUP = 'http://localhost/HDPHP_CMS/./Cms';
		TPL = 'http://localhost/HDPHP_CMS/./Cms/Cms/Index/Tpl/default1';
		CONTROLTPL = 'http://localhost/HDPHP_CMS/./Cms/Cms/Index/Tpl/default1/Html';
		STATIC = 'http://localhost/HDPHP_CMS/Static';
		PUBLIC = 'http://localhost/HDPHP_CMS/./Cms/Cms/Index/Tpl/default1/Public';
		HISTORY = 'http://localhost/HDPHP_CMS/index.php?a=Admin&c=Common&m=one_key&msg=%E9%A6%96%E9%A1%B5%E9%9D%99%E6%80%81%E9%A1%B5%E9%9D%A2%E7%94%9F%E6%88%90%E6%88%90%E5%8A%9F';
		HTTPREFERER = 'http://localhost/HDPHP_CMS/index.php?a=Admin&c=Common&m=one_key&msg=%E9%A6%96%E9%A1%B5%E9%9D%99%E6%80%81%E9%A1%B5%E9%9D%A2%E7%94%9F%E6%88%90%E6%88%90%E5%8A%9F';
		TEMPLATETPL = 'http://localhost/HDPHP_CMS/Templates/default1';
</script>
<script type="text/javascript" src="http://localhost/HDPHP_CMS/Templates/default1/js/js.js"></script>
</head>
<body>
	<!-- 顶部100%灰色区域 -->
	<div id="top_dark_box">
		<!-- 中间1200px宽度区域 -->
		<div id="top_dark">
			<a href="http://localhost/HDPHP_CMS"><img src="http://localhost/HDPHP_CMS/Templates/default1/images/others/logo.jpg" id="logo" /></a>
			<!-- 导航菜单 -->
			<ul id="menu">
				<li>
					<a href="http://localhost/HDPHP_CMS" >首页</a>
				</li>
						<?php
		$data=K('Category')->where('is_show=1')->order('cid ASC')->limit(10)->findAll();
		?>
		<?php if(is_array($data)):?><?php  foreach($data as $field){ ?>
			<?php
			$field['url']=get_cate_url($field['is_listhtml'],$field['htmldir'],$field['cid'])
			?>
			
					<li>
						<a href="<?php echo $field['url'];?>" ><?php echo $field['cname'];?></a>
					</li>
				
		<?php }?><?php endif;?>
			</ul>
			<!-- 导航菜单结束 -->
			<!-- 用户登录 -->
			<div id="loginInfo" class='loginInfo'>
				
			</div>
			<!-- 用户登录对应隐藏区域 -->
			<form id="loginForm" action="<?php echo U('Index/Login/login');?>" method="post">
			<div class="login_hide_box">
				<img src="http://localhost/HDPHP_CMS/Templates/default1/images/sanjiao.gif" alt="" />
				<div class="middle">
					<p>用户名：</p>
					<input type="text" name="username" class="text" />
					<p>密码：</p>
					<input type="password" name="password" class="text" />
					<input type="submit" value="" class="sub" />
				</div>
				<div class="bottom">
					<a  href="javascript:showRegBox();" class="reg">注册</a>
				</div>
			</div>
			</form>
			
			<!-- 用户注册对应隐藏区域 -->
			<form id="regForm" action="<?php echo U('Index/Register/reg');?>" method="post">	
			<div class="reg_hide_box">
				<img src="http://localhost/HDPHP_CMS/Templates/default1/images/sanjiao.gif" alt="" />
				<div class="middle">
					<p>用户名：</p>
					<input type="text" name="username_reg" class="text username" />
					<p>昵称：</p>
					<input type="text" name="nickname" class="text nickname" />
					<p>密码：</p>
					<input type="password" name="password_reg1" class="text password" />
					<p>确认密码：</p>
					<input type="password" name="password_reg2" class="text password" />
					<p>验证码：</p>
					<img src="<?php echo U('Index/Register/code');?>" id="code" onclick="this.src=this.src + '&' + Math.random()"/>
					<input type="text"  name="code" class="text password_d" />
					<input type="submit" value="注册" class="sub" />
				</div>
			</div>
			</form>
		</div>
		<!-- 中间1200px宽度区域结束 -->
	</div>
	<!-- 顶部灰色100%区域结束 -->
	
	<!-- 顶部最新消息区域 -->
	<div id="latest_news_box">
		<div id="latest_news">
			<p><span class="title">最新消息：</span>大前端是一个关注web前端开发、用户体验设计、wordpress主题、前端招聘信息的站点</p>
		</div>
	</div>
	<!-- 顶部最新消息区域结束 -->